package com.neu.carbon.myplan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.carbon.myplan.mapper.CarrierApplyMapper;
import com.neu.carbon.myplan.domain.CarrierApply;
import com.neu.carbon.myplan.service.CarrierApplyService;

/**
 * 产品承运申请Service业务层处理
 *
 * @author neuedu
 * @date 2025-03-18
 */
@Service
public class CarrierApplyServiceImpl implements CarrierApplyService
{
    @Autowired
    private CarrierApplyMapper carrierApplyMapper;

    /**
     * 查询产品承运申请
     *
     * @param id 产品承运申请ID
     * @return 产品承运申请
     */
    @Override
    public CarrierApply selectWmsCarrierApplyById(Long id)
    {
        return carrierApplyMapper.selectWmsCarrierApplyById(id);
    }

    /**
     * 查询产品承运申请列表
     *
     * @param wmsCarrierApply 产品承运申请
     * @return 产品承运申请
     */
    @Override
    public List<CarrierApply> selectWmsCarrierApplyList(CarrierApply wmsCarrierApply)
    {
        return carrierApplyMapper.selectWmsCarrierApplyList(wmsCarrierApply);
    }

    /**
     * 新增产品承运申请
     *
     * @param wmsCarrierApply 产品承运申请
     * @return 结果
     */
    @Override
    public int insertWmsCarrierApply(CarrierApply wmsCarrierApply)
    {
        return carrierApplyMapper.insertWmsCarrierApply(wmsCarrierApply);
    }

    /**
     * 修改产品承运申请
     *
     * @param wmsCarrierApply 产品承运申请
     * @return 结果
     */
    @Override
    public int updateWmsCarrierApply(CarrierApply wmsCarrierApply)
    {
        return carrierApplyMapper.updateWmsCarrierApply(wmsCarrierApply);
    }

    /**
     * 批量删除产品承运申请
     *
     * @param ids 需要删除的产品承运申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsCarrierApplyByIds(Long[] ids)
    {
        return carrierApplyMapper.deleteWmsCarrierApplyByIds(ids);
    }

    /**
     * 删除产品承运申请信息
     *
     * @param id 产品承运申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsCarrierApplyById(Long id)
    {
        return carrierApplyMapper.deleteWmsCarrierApplyById(id);
    }
}
